//package com.M10.BE.inventory;
//
//import android.app.Activity;
//import android.content.Context;
//import android.os.Bundle;
//import android.support.annotation.Nullable;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.LinearLayout;
//import android.widget.ListView;
//import android.widget.TextView;
//
//import com.M10.BE.R;
//import com.M10.BE.adapter.NNewAdapter;
//import com.M10.BE.entity.NAsset;
//
//import java.util.ArrayList;
//
///**
// * Created by Administrator on 2018/8/15.
// */
//
//public class TestActivity extends Activity {
//    private View footer;
//    private TextView tv_footer, tv_footer_more;
//    private LinearLayout llt_footer;
//    private Context context;
//
//    //    private RelationMarkListAdapter relationListAdapter = null;
////    private List<SortNeighbor> list = new ArrayList<SortNeighbor>();
//    private ArrayList<NAsset> assetLists = new ArrayList<NAsset>();
//    private ListView listView;
//    private LinearLayout llt_relation_more;
//    //    private View header, header_close;
//    private TextView header_content;
//    NNewAdapter nNewAdapter = null;
//    View view = null;
//
//    @Override
//    public void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//    }
//
//    protected void initView(View view, LayoutInflater inflater) {
//        listView = (ListView) view.findViewById(R.id.listview_fragment);
//        for (int i = 0; i < 3; i++) {
//            NAsset asset = new NAsset();
//            asset.setZcNo(i+"2");
//            assetLists.add(asset);
//        }
//        nNewAdapter = new NNewAdapter(context, assetLists,
//                listView);
//        listView.setAdapter(nNewAdapter);
//    }
//
//
//
//    @Nullable
//    @Override
//    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//        if (view == null) {
//            view = inflater.inflate(R.layout.listview_asset_fragment, container, false);
//            initView(view, inflater);
//        }
//        ViewGroup parent = (ViewGroup) view.getParent();
//        if (parent != null) {
//            parent.removeView(view);
//        }
//        return super.onCreateView(inflater, container, savedInstanceState);
//
//    }
//
//    @Override
//    public void onDestroy() {
//        super.onDestroy();
//    }
//
//    @Override
//    public void onResume() {
//        super.onResume();
//        for (int i = 3; i < 5; i++) {
//            NAsset asset = new NAsset();
//            asset.setZcNo(i+"3");
//            assetLists.add(asset);
//        }
//        nNewAdapter.notifyDataSetChanged();
//    }
//
//    @Override
//    public void onClick(View v) {
//    }
//
//}
